#!/bin/bash
echo "开始发布应用..."
# 更新应用工作负载
curl -u "token-q5jz6:wgfqkm9hdtcm7dwlxmcjr4dglvrpw8pssvk45m5zmrvrj6g4ch79cx" -k -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' 'https://120.78.164.68/v3/project/c-p7lnt:p-csmd5/workloads/deployment:other:mmp' -d@/opt/docker/update_mmp_workload.json

# 重新部署应用工作负载
curl -u "token-q5jz6:wgfqkm9hdtcm7dwlxmcjr4dglvrpw8pssvk45m5zmrvrj6g4ch79cx" -k  -X POST  -H 'Accept: application/json'  -H 'Content-Type: application/json'  'https://120.78.164.68/v3/project/c-p7lnt:p-csmd5/workloads/deployment:other:mmp?action=redeploy'
echo "发布完成!!!"
